package com.crazymo.jni;

import android.content.Context;

import com.crazymo.jni.bean.Blog;
import com.crazymo.jni.bean.User;

import java.util.List;
import java.util.Map;

/**
 * @author : Crazy.Mo
 */
public class ProcessJavaDataHelper {
    public native void sendBasicType(double df,int k,long lk,float f,boolean b,char c);

    public native void sendBasicRefType(Double df,Integer k,Long lk,Float f,Boolean b,Character c);

    public native void sendString(String s,String[] strArr);

    public native void sendBean(Blog blog);

    public native void sendArrays(int[] ids, Blog[] blogs);

    public native void sendList(List<String> list);

    public native void sendMap(Map<String,String> map);

    public native int getBasicData();

    public native String getStringData();

    public native int[] getIntArrayData(int len);

    public native List<String> getListData(int size);

    public native Map<String,String> getMapData(int size);

    public native void sendJavaObjs(int num,String name,int[] arry,String[] strs);

    public native void updateUser(User user);

    public native void runNativeCallJava(MainActivity context);
}
